<!DOCTYPE html>
<html lang="en">
<head>
    <title>Document</title>
    <style>
        body{
            margin: 0;
            padding: 0;
        }
        #box{
            width: 100px;
            height: 100px;
            background-color: red;
            position: relative;
            transform: translateX(50%);
        }
    </style>
</head>
<body>
    <div id="box"></div>
</body>
</html>